package com.tj.collection.controller.lending.response;

import com.fqgj.common.api.ResponseData;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2020/1/22
 * Time: 下午2:40
 */
public class ClAppBaseResponse implements ResponseData {

    /**
     * 最新版本
     */
    private Integer latestVersionCode = 0;
    /**
     * 最低版本
     */
    private Integer minimumVersionCode = 0;
    /**
     * apk下载链接
     */
    private String updateUrl;
    /**
     * 更新文案
     */
    private String updateDesc;
    /**
     * 录音开关 0-关闭 1-开启
     */
    private Integer recordingSwitch;

    public ClAppBaseResponse(Integer latestVersionCode, Integer minimumVersionCode, String updateUrl, String updateDesc, boolean cmAppRecordingSwitch) {
        this.latestVersionCode = latestVersionCode;
        this.minimumVersionCode = minimumVersionCode;
        this.updateUrl = updateUrl;
        this.updateDesc = updateDesc;
        this.recordingSwitch = cmAppRecordingSwitch ? 1 : 0;
    }

    public Integer getLatestVersionCode() {
        return latestVersionCode;
    }

    public ClAppBaseResponse setLatestVersionCode(Integer latestVersionCode) {
        this.latestVersionCode = latestVersionCode;
        return this;
    }

    public Integer getMinimumVersionCode() {
        return minimumVersionCode;
    }

    public ClAppBaseResponse setMinimumVersionCode(Integer minimumVersionCode) {
        this.minimumVersionCode = minimumVersionCode;
        return this;
    }

    public String getUpdateUrl() {
        return updateUrl;
    }

    public ClAppBaseResponse setUpdateUrl(String updateUrl) {
        this.updateUrl = updateUrl;
        return this;
    }

    public String getUpdateDesc() {
        return updateDesc;
    }

    public ClAppBaseResponse setUpdateDesc(String updateDesc) {
        this.updateDesc = updateDesc;
        return this;
    }

    public Integer getRecordingSwitch() {
        return recordingSwitch;
    }

    public ClAppBaseResponse setRecordingSwitch(Integer recordingSwitch) {
        this.recordingSwitch = recordingSwitch;
        return this;
    }
}
